package models

import "gorm.io/gorm"

type Job struct {
	gorm.Model
	Title           string `gorm:"type:varchar(30)" json:"title"`
	Content         string `gorm:"type:varchar(30)" json:"content"`
	Img             string `gorm:"type:varchar(30)" json:"img"`
	CollectionCount int    `gorm:"type:int" json:"collection_count"`
}
type Collection struct {
	gorm.Model
	JobID int `gorm:"type:int" json:"job_id"`
	Job   Job `gorm:"foreignKey:JobID" json:"job"`
}
